<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets">
  <body>
    <ui:composition template="/WEB-INF/templates/main.xhtml">
      <ui:define name="titoloSezione"> Segreteria</ui:define>
      
      <ui:define name="corpo">
        <!-- Script di redirezione -->
      	<h:outputScript rendered="#{!login.autenticato}" target="head">
          window.location="/BiPoD2.0/";
        </h:outputScript>
        
        <h1>Homepage Segreteria</h1>
        
        <p class="plainText">Benvenuto #{segretario.nome} #{segretario.cognome}</p>
        
        <!-- Menu' -->
        <h:form>
          <table cellspacing="0" cellpadding="4" class="linkBar">
            <tr>
              <td class="linkBar"><h:link outcome="/segretario/bandi?faces-redirect=true" value="Gestione Bandi"/></td>
              <td class="linkBar"><h:link outcome="/segretario/corsi?faces-redirect=true" value="Gestione Corsi"/></td>
              <td class="linkBar"><h:link outcome="/segretario/docenti?faces-redirect=true" value="Gestione Docenti"/></td>
              <td class="linkBar"><h:link outcome="/segretario/segretari?faces-redirect=true" value="Gestione Segretari"/></td>
              <td class="linkBar"><h:link outcome="/segretario/operazioni?faces-redirect=true" value="Storico Operazioni"/></td>
              <td class="linkBar"><h:commandLink action="#{login.logout}" value="Esci"/></td>
            </tr>
          </table>
        </h:form> 
        
        <hr noshade="noshade" style="color: black"/>
        
        <ui:insert name="contenuto"></ui:insert>
      </ui:define>
    </ui:composition>
  </body>
</html>